home *** CD-ROM | disk | FTP | other *** search
- from PSPApp import *
- import PSPUtils
-
- def ScriptProperties():
- return {
- 'Author': 'Jackie Laderoute',
- 'Copyright': '2003 - free for personal use. Not for resale.',
- 'Description': "Greyscale with color tone effect.",
- 'Host': 'Paint Shop Pro',
- 'Host Version': '8.00'
- }
-
-
- def Do(Environment):
- if not PSPUtils.IsTrueColor(Environment, App.TargetDocument):
- # IncreaseColorsTo16Million
- App.Do( Environment, 'IncreaseColorsTo16Million', {
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Silent,
- 'AutoActionMode': App.Constants.AutoActionMode.Match
- }
- })
-
- App.Do( Environment, 'ColorAdjustChannelMixer', {
- 'ChannelMixer': {
- 'Monochrome': App.Constants.Boolean.true,
- 'Grey': (60,15,25,0),
- 'Red': (60,15,25,0),
- 'Blue': (60,15,25,0),
- 'Green': (60,15,25,0)
- },
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Silent,
- 'PreviewVisible': App.Constants.Boolean.true,
- 'AutoProof': App.Constants.Boolean.true,
- 'AutoActionMode': App.Constants.AutoActionMode.Match
- }
- })
-
- App.Do( Environment, 'NewAdjustmentLayerColorBalance', {
- 'General': {
- 'Opacity': 100,
- 'Name': PSPUtils.LayerName_Tonedgreyscale,
- 'IsVisible': App.Constants.Boolean.true,
- 'IsTransparencyLocked': App.Constants.Boolean.false,
- 'LinkSet': 0,
- 'UseHighlight': App.Constants.Boolean.false,
- 'PaletteHighlightColor': (255,255,64),
- 'GroupLink': App.Constants.Boolean.true,
- 'BlendMode': App.Constants.BlendMode.Normal
- },
- 'ColorBalance': {
- 'PreserveLuminosity': App.Constants.Boolean.true,
- 'Highlight': (0,0,0),
- 'Shadow': (0,0,0),
- 'Midtone': (-75,30,25)
- },
- 'Overlay': {
- 'Color': (255,0,0),
- 'Opacity': 50
- },
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Interactive,
- 'PreviewVisible': App.Constants.Boolean.true,
- 'AutoProof': App.Constants.Boolean.true,
- 'AutoActionMode': App.Constants.AutoActionMode.Match
- }
- })
-
-